<?php

function a(){
// 	print_r(print_stack_trace());
// 	debug_backtrace ();
print_r();
	
}

function print_stack_trace() {
	$array = debug_backtrace ();
	// print_r($array);//信息很齐全
// 	unset ( $array [0] );
// 	unset ( $array [1] );
// 	foreach ( $array as $row ) {
// 		$html .= $row ['file'] . ':' . $row ['line'] . '行,调用方法:' . $row ['function'] . "<br>\n";
// 	}
	return $html;
}

a();
